-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added option to disable structLogs for debug_trace* rpc methods. #1931
Added option to disable structLogs for debug_trace* rpc methods. #1931
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Perhaps we should align all the flags in TraceConfig
so we don't have half of them be EnableXYZ and the other half DisableXYZ. But this can be done through some other PR.
@ohijiho I agree entirely with @dusan-maksimovic here. Also then it makes more sense to expose the |
Then, structLogs is disabled by default and enabled when one of memory, storage or stack is enabled? If that's the case, the config will be restricted so that there's no option to enable only the structLogs. FYI, the main purpose of this PR is adding an option to entirely disable the structLogs, which is different from disabling all three extra informations. |
Description
The easiest reliable way to get return data of a transaction is debug_traceTransaction rpc, but it comes with huge structLogs data, which uses a lot of network traffic.
This is a simple solution for that: Just add an option to disable it.
Changes include
Checklist
Testing
Manual tests
Additional comments
I removed some test code lines that skips certain test suites. I don't know exactly why they have been made skipped originally, but they seems to work well now.